package com.jia.blog.util;


import com.jia.blog.shiro.AccountProfile;
import org.apache.shiro.SecurityUtils;

/**
 * Shiro工具类
 */
public class ShiroUtils {
    /**
     * 获取当前登录用户的信息
     * @return
     */
    public static AccountProfile getProfile(){
        return (AccountProfile) SecurityUtils.getSubject().getPrincipal();
    }
}
